package api.my_api;

import java.time.Duration;
import java.time.LocalDateTime;

public class Test11 {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime of = LocalDateTime.of(2023, 4, 15, 1, 1, 1);
        Duration duration = Duration.between(now, of);
        System.out.println(duration);
        long l = duration.toSeconds();
        System.out.println("l = " + l);
        long days = duration.toDays();
        System.out.println("days = " + days);
    }
}
